Conversational agent with a particular spoken style of speech

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for handing off a user conversation between computer-implemented agents. One of the methods includes receiving, by a computer-implemented agent specific to a user device, a digital representation of speech encoding an utterance, determining, by the computer-implemented agent, that the utterance specifies a requirement to establish a communication with another computer-implemented agent, and establishing, by the computer-implemented agent, a communication between the other computer-implemented agent and the user device.

BACKGROUND

This specification relates to computer-implemented conversationalagents.

A computer-implemented agent may interact with a user to provide theuser with an interface for features of a device on which thecomputer-implemented agent executes or with which thecomputer-implemented agent is associated. For example, a computerimplemented agent may execute on a mobile device, receive voice inputfrom a user, and execute one or more actions in response to the voiceinput, such as retrieving search results responsive to the voice inputand providing the search results to the user.

SUMMARY

In general, one innovative aspect of the subject matter described inthis specification can be embodied in methods that include the actionsof receiving, by a computer-implemented agent specific to a user device,a digital representation of speech encoding an utterance, determining,by the computer-implemented agent, that the utterance specifies arequirement to establish a communication with anothercomputer-implemented agent, and establishing, by thecomputer-implemented agent, a communication between the othercomputer-implemented agent and the user device. Other embodiments ofthis aspect include corresponding computer systems, apparatus, andcomputer programs recorded on one or more computer storage devices, eachconfigured to perform the actions of the methods. A system of one ormore computers can be configured to perform particular operations oractions by virtue of having software, firmware, hardware, or acombination of them installed on the system that in operation causes orcause the system to perform the actions. One or more computer programscan be configured to perform particular operations or actions by virtueof including instructions that, when executed by data processingapparatus, cause the apparatus to perform the actions.

The foregoing and other embodiments can each optionally include one ormore of the following features, alone or in combination. The othercomputer-implemented agent might not be specific to the user device. Theother computer-implemented agent may be different from thecomputer-implemented agent. Establishing the communication with theother computer-implemented agent and the user device may includeestablishing the communication with the other computer-implemented agentexecuting on another device and the user device. Establishing thecommunication with the other computer-implemented agent and the userdevice may include establishing the communication with the othercomputer-implemented agent and the computer-implemented agent. Thecomputer-implemented agent may be for a first application on a userdevice and the other computer-implemented agent may be for a second,different application on the user device.

In some implementations, the method includes providing a representationof the utterance to the other computer-implemented agent. Therepresentation may include a text representation of the utterance. Themethod may include receiving, by the computer-implemented agent from theother computer-implemented agent, another representation of a responseto the utterance, and generating, using the other representation, datato cause a presentation of the response. The method may includedetermining, by the computer-implemented agent, settings, associatedwith the other computer-implemented agent, for the presentation of theresponse. The representation may include the digital representation ofspeech. Providing the representation of the utterance to the othercomputer-implemented agent may include providing data for a user whospoke the utterance to the other computer-implemented agent. Providingdata for the user who spoke the utterance to the othercomputer-implemented agent may include determining privacy settings forthe user, and providing the data for the user to the othercomputer-implemented agent according to the privacy settings.

In some implementations, the method may include receiving datarepresenting properties of the other computer-implemented agent prior toreceiving the digital representation of speech encoding the utterance.Receiving the data representing the properties of the othercomputer-implemented agent may include receiving a definition of a dataflow for the other computer-implemented agent that identifies a responsefor the other computer-implemented agent given a particular type ofinput. Receiving the data representing the properties of the othercomputer-implemented agent may include receiving an identification of aparticular style of speech for the other computer-implemented agent.Receiving the data representing the properties of the othercomputer-implemented agent may include receiving text-to-speechparameters for responses provided by the other computer-implementedagent. Receiving the data representing the properties of the othercomputer-implemented agent may include receiving a selection of atemplate that identifies a data flow for computer-implemented agentsthat identifies a type of response for the other computer-implementedagent given a particular type of input. The template may be forcomputer-implemented agents that provide online ordering services. Theonline ordering services may include online pizza delivery services.

The subject matter described in this specification can be implemented inparticular embodiments so as to realize one or more of the followingadvantages. In some implementations, a system enables third parties tobuild voice input and output interfaces, e.g., computer-implementedconversational agents, for user devices, e.g., using an applicationprogramming interface. In some implementations, a system enables acomputer-implemented agent to automatically initiate conversationbetween another computer-implemented agent and a user, e.g., to hand offa conversation, based on input received from the user, e.g., specific tothe other computer-implemented agent. In some implementations, a handoff of a conversation between agents enables users who cannot, or do notwish to, physically interact with a device to interact with or receiveinformation from different entities while using the device. Forinstance, a user may be disabled or a device may not include a touchinterface, e.g., a touch screen or a keyboard.

The details of one or more embodiments of the subject matter of thisspecification are set forth in the accompanying drawings and thedescription below. Other features, aspects, and advantages of thesubject matter will become apparent from the description, the drawings,and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an example environment of a hand off betweencomputer-implemented conversational agents.

FIG. 2 is an example system in which an entity creates an agent that mayreceive a conversation hand off from a device agent.

FIG. 3 is a flow diagram of a process for establishing communicationbetween a user device and a computer-implemented conversational agent.

FIG. 4 is a block diagram of a computing system that can be used inconnection with computer-implemented methods described in this document.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION Overview

A system may provide an extensible, feature rich, computer-implementedconversational agent platform that enables entities to quickly buildconversational agents that can interact with users via avoice-in/voice-out interface. Each entity may use common features tocreate a custom conversational agent that helps users accomplish varioustasks and achieve various objectives, e.g., associated with the entity.

The system may provide a user interface that enables third parties toauthor conversational agents, e.g., a set of conversation dialogs theconversational agent will use when interacting with a user. The thirdparties may create a conversational agent to describe a business of thethird party, to interact with the users or customers of the third party,or both. The conversational dialogs may specify particular responses orquestions for the conversational agent based on input received from theuser.

Each of the third parties may specify a purpose for their conversationalagent, e.g., to make airline reservations, tell jokes, allow a user topurchase movie tickets, etc. A third party may select a template, e.g.,a default conversational flow, for a conversational agent thatcorresponds with the purpose of the conversational agent. For instance,a company that provides airline reservations may select a template forreservation conversational agents or airline reservation conversationalagents and customize the template for their specific use or company,e.g., by customizing prompts and responses provided to a user.

Some of the customizations may include changing settings of theconversational agent, such as a particular style of speech, e.g., aparticular language use or ways the agent responds to particularsituations with the user, a particular voice, e.g., whether the agenthas a male or female voice or a sound of speech, a particular language,e.g., as text-to-speech parameters, certain idioms and vocabulary,and/or custom commands for the agent, e.g., voice commands. In someexamples, settings for an airline agent may indicate that the airlineagent is very professional and business oriented and settings for acomedy club's agent may indicate that the comedy club agent is bubbly,edgy, and funny.

The system may include a platform that converts an authoredconversational flow for a third party agent into a naturalconversational user interface with a user. For instance, the platformmay use the text-to-speech parameters for the agent and the agent'svoice settings to convert a text response specified by the agent'sconversational flow to an audio stream and audibly present the audiostream to a user.

The system may include automated error correction techniques that enablethe system to interact with a user to determine an appropriate action inresponse to input that may not be clear. Some error correctiontechniques may prompt the user with yes-or-no questions or by offering aset of options from which the user can select. The questions andmultiple choice queries may enable the system to resolve ambiguousreferences, e.g., “what does ‘that’ refer to?”, assess the user'ssentiment, e.g., “does that mean you like the last song?”, and otherwiseclarify the user's intent, e.g., “what did you mean by IOU”.

For example, one potential source of error may include unintelligiblespeech from a user, e.g., when the system's speech recognition system isunable to determine what the user said. In this example, one errorcorrection technique may be to prompt the user to repeat what he said.Another potential source of error may include receipt of a command bythe system with which the system cannot determine an appropriateresponse. In this example, the system may provide the user with someoptions from which he can select, e.g., options commonly selected byother users.

The system may provide error correction techniques to third parties sothat each third party does not have to create error correct techniquesthemselves. For instance, a third party may select one or more errorcorrection techniques specific to their industry, specific to aparticular conversation flow template, or from a list.

The platform may allow a conversational agent for a user device to “handoff” a user conversation to another conversational agent, e.g., aspecific third party conversational agent. For instance, the user mayask the conversational agent for the user device to recommend arestaurant and walk the user through the process of selecting arestaurant. Once the conversational agent for the user device receives arestaurant selection from the user, the conversational agent for theuser device may ask the user whether the user would like to connect witha conversational agent for the selected restaurant or with a restaurantreservation conversational agent.

The third parties may make third party data available to the platform toallow the platform to use the data during a conversation flow. Forexample, a pizza delivery third party may provide the platform withaccess to the types of pizzas currently available to ensure that theplatform does not allow a user to order a pizza that is not currentlyavailable, e.g., when some ingredients for specific types of pizzas arenot available.

The system may also allow third party agents to hand off conversationsto other third party agents. In some examples, the conversational agentfor a user device may receive a request for a restaurant recommendationand may hand off the conversation to a restaurant's agent that providesthe user with menu information. The restaurant's agent may then receivea request to make a reservation and hand off the conversation to arestaurant reservation agent, created by the same third party restaurantor by another third party, e.g., that manages restaurant reservations.

Example Operating Environment

FIG. 1 is an example environment 100 of a hand off betweencomputer-implemented conversational agents. For example, a user 102 mayinitiate a conversation with a computer-implemented conversational agent104 by saying “okay Google. I want to order pizza from John's PizzaJoint.” The agent 104 receives the input, analyzes the input, anddetermines that another computer-implemented conversational agent 106for John's Pizza Joint is available to assist the user in ordering apizza from John's Pizza Joint. The agent 104 responds to the user 102stating “let me connect you with the agent for John's Pizza Joint.”

The agent 104 receives input from the user 102 saying “okay” andprovides data to the other agent 106 about the conversation, e.g., thatthe user 102 wants to order a pizza, as part of a process to hand offthe conversation to the other agent 106. The data does not include anyinformation that identifies the user 102 unless the user 102 previouslygave the agent 104 permission to release the user's identity to anyother agents or to the specific other agent 106 for John's Pizza Joint,e.g., explicitly or in a setting.

The other agent 106 then communicates with the user 102, e.g., by askingthe user 102 “what type of pizza would you like?” The other agent 106,and the agent 104, may interact with the user 102 through a platform,executing on a user device operated by the user 102 or on a server, thatprovides a text-to-speech interface for the agents, as described in moredetail below.

The other agent 106 may receive a response from the user 102 indicatingthat the user 102 “wants a twelve inch pizza with Canadian bacon andpineapple” and prompt the user 102 whether the other agent 106 “has yourpermission to get your phone number and address from the Google Agent.”When the other agent 106 receives a response “yes. Get paymentinformation from the Google Agent as well” from the user 102, the otheragent 106 retrieves the phone number, address, and payment informationfrom the agent 104 and completes the order for the user 102. The otheragent 106 may then inform the user 102 “okay, you're all set. The pizzawill be delivered in thirty-five minutes.”

When the other agent 106 does not receive permission from the user 102to retrieve the user's phone number and address from the agent 104, theother agent 106 prompts the user 102 for his address, and phone number.The other agent 106 may prompt the user 102 for payment information. Theother agent 106 may then provide the user 102 with delivery information,such as when the pizza is expected to be delivered.

Example System

FIG. 2 is an example system 200 in which an entity creates an agent thatmay receive a conversation hand off from a device agent. For instance,an administrator for John's Pizza Joint may access a conversation server202, and a conversational agent platform 203 on the conversation server202, to create a computer-implemented conversational agent 208. Theadministrator may access a conversational agent application programminginterface (API) 204 that includes templates 206 for different types ofconversational agents. The administrator may use the agent API 204 tocreate the conversational agent 208 using a template or without using atemplate. Some templates may include conversation data flows for onlineordering, for any type of food service or particular types of foodservices, e.g., pizza delivery, ordering tickets, e.g., to a game orshow or for an airline, getting movie recommendations or watching moviesor television shows, e.g., online, etc.

The administrator may define a conversation data flow 210 and agentsettings 212 for the conversational agent 208. The conversation dataflow may include a series of questions and responses for theconversational agent 208 to use during a conversation with a user, e.g.,based on expected prompt types or expected response types from the user.The conversation data flow 210 may include multiple differentconversation data flows, e.g., for different interactions with a user. Afirst conversation data flow may allow the conversational agent 208 toprovide a user with a menu for John's Pizza Joint, a second conversationdata flow may provide a user with an interface to order a pizza fromJohn's Pizza Joint, and a third conversation data flow may includemultiple different flows depending on different types of input from theuser, e.g., whether or not the user would like to order a side.

The agent settings 212 may include a particular style of speech, aparticular voice, a particular language, custom commands, or acombination of any two or more of these. For example, the administratormay select a deep male voice with a certain accent as the particularvoice. Some examples of styles of speech include serious, formal,bubbly, funny, and casual.

Data representing the conversational agent 208 may be stored on theconversation server 202, e.g., one or more computers that include datafor multiple conversational agents, a server 214 for John's Pizza Joint,or both. The server 214 may be administered by the John's Pizza Jointentity, or may be managed on behalf of the entity by a third party.

When a user device 226 accesses a web page or an application 216 forJohn's Pizza Joint, a device agent 222, associated with the user device226, may ask a user of the user device 226 if they would like to speakwith the conversational agent 208, e.g., instead of using a visual userinterface. When the user device 226 accesses an application 216 forJohn's Pizza Joint, the user device 226 may communicate with theapplication 216 executing on John's Pizza Joint's server 214 or mayinstall the application, e.g., as John's Pizza Joint application 232 onthe user device 226. The installation of the application 232 on the userdevice 226 may include data for the conversational agent 208 and whenthe user launches the application 232, e.g., by instructing the deviceagent 222 to launch the application 232, the conversational agent 208may initiate a conversation with the user, e.g., the device agent 222may hand off the user conversation to the conversational agent 208.

When the conversational agent 208 interacts with the user device 226,the conversational agent 208 may access user accounts 218 and orderhistory data 220 for John's Pizza Joint. For example, the conversationalagent 208 may ask a user of the user device 226 for account information,access that user's account using the account information, and determinerecent orders for that user which are listed in the order history data220. The conversational agent 208 may use the order history data 220 andthe user accounts 218 to provide a recommendation on which pizza toorder, to facilitate the order process, e.g., by determining the user'saddress rather than prompting the user for his address, or both.

The conversational agent 208 may gain access to the user's account orthe order history data 220 by communicating with a computer-implementeddevice conversational agent 222 specific to the user device 226. Thedevice agent 222 may execute on the conversation server 202, and beassociated with the user device 226 by a device identifier 224 for theuser device 226, or may execute on the user device 226. When the deviceagent 222 receives a request for data, e.g., user profile data 228, fromthe conversational agent 208, the device agent 222 may access privacysettings 230 for the user device 226, which are stored on the userdevice 226, the conversation server 202, or both, to determine whatinformation may be shared with the conversational agent 208.

In some examples, the privacy settings 230 may indicate that the deviceagent 222 may provide the conversational agent 208 with the user's name,address, and phone number. The conversational agent 208 may use theuser's name, address, and phone number to determine an account for theuser and the user's order history.

The privacy settings 230 may indicate that particular data may be sharedwith some conversational agents and not shared with other conversationalagents. In some examples, one of the conversational agents may promptthe user to determine what information may be shared between theconversational agents. The privacy settings 230, or other settings, maybe updated using the response from the user.

The device agent 222 may initiate communications between the user device226, e.g., the device agent 222, and the conversational agent 208. Forinstance, the device agent 222 may receive a request from a user of theuser device 226 asking for a restaurant recommendation and identifyJohn's Pizza Joint in response, or receive a request specifically askingto order a pizza from or view the menu of John's Pizza Joint. The deviceagent 222 connects the user device 226 with the conversational agent 208for John's Pizza Joint to facilitate communication between the user andthe conversational agent 208. For example, the communication may bebetween the user device 226 and the conversation server 202, or betweenthe user device 226 and John's Pizza Joint's server 214.

Separate software, e.g., on the conversation server 202, may be used forthe device agent 222 and the conversational agent 208 or the samesoftware may be used for both agents. For instance, the server may havea single application, e.g., which is part of the conversational agentplatform 203, that accesses different data, e.g., settings, for each ofthe agents and that provides an interface for communication with theuser device 226 and the conversational agents. The single applicationmay access the conversation data flow 210 to determine an appropriateresponse to a question or statement from the user and the agent settings212 to determine how that response should be presented. The singleapplication then generates data representing the response and providesthat data to the user device 226 which uses the data to provide anaudible response to the user.

In some examples, the device agent 222 may provide representations ofinput, e.g., text representations of utterances, to the conversationalagent 208 to facilitate communication between the user and theconversational agent. The device agent 222 receives responses from theconversational agent 208, e.g., either text or audible responses, andprovides the responses to the user. When the device agent 222 receivestext responses from the conversational agent 208, the device agent 222may use settings for the conversational agent 208 to generate andprovide audible responses to the user.

In some implementations, an application for the third party, e.g.,John's Pizza Joint, does not have to be installed on the user device 226for the user to interact with a service provided by the third party. Forexample, the device agent 222 may determine that there is an agent forthe third party service, e.g., the conversational agent 208. The deviceagent 222 may then communicate with the conversational agent 208, or theuser device 226 may communicate with the conversational agent 208, toprovide an audible interface to the user.

In these implementations data for the conversational agent 208 may bestored on John's Pizza Joint's server 214, the conversation server 202,or a combination of the two. For instance, the conversational agent 208may execute on the conversation server 202 or data for theconversational agent 208 may reside on the conversation server 202,e.g., and be used by another application to generate response that willbe presented to a user. The conversational agent 208 on the conversationserver 202 may include information about data stored on John's PizzaJoint's server 214, such as how to access the user accounts 218, theorder history data 220, or both. The executing conversational agent 208,or an application using data representing the conversational agent 208,may use this information stored on John's Pizza Joint's server 214 whencommunicating with the user device 226 and a respective user.

The user device 226 may include personal computers, mobile communicationdevices, and other devices that can send and receive data over a network234. The network 234, such as a local area network (LAN), wide areanetwork (WAN), the Internet, or a combination thereof, connects theconversation server 202, John's Pizza Joint's server 214, and the userdevice 226.

Example Process Flow

FIG. 3 is a flow diagram of a process 300 for establishing communicationbetween a user device and a computer-implemented conversational agent.For example, the process 300 can be used by the conversation server 202or the user device 226 from the system 200.

The process receives data representing properties of anothercomputer-implemented agent (302). For example, a server receives aconversation data flow and other settings for the other agent from anadministrator. In some examples, the server receives the settings forthe other agent from another computer.

The process receives, by a computer-implemented agent specific to a userdevice, a digital representation of speech encoding an utterance (304).For instance, the agent receives a request from a user for a restaurantrecommendation, asks the user if they would like to make a reservationat John's Pizza Joint, and receives a digital representation of theutterance “yes.”

The process determines, by the computer-implemented agent, that theutterance specifies a requirement to establish a communication with theother computer-implemented agent (306). The agent determines that theother agent, specific to John's Pizza Joint or a restaurant reservationsystem, can assist the user in making a reservation at John's PizzaJoint.

The process establishes, by the computer-implemented agent, acommunication between the other computer-implemented agent and the userdevice (308). For example, the agent hands off communication with theuser to the other agent and creates a connection between the other agentand the user device. When the other agent executes on a server, theconnection may be between the user device and the server. When the agentexecutes on a server and the other agent executes on another server, theconnection may include multiple points, e.g., the user device, theserver, and the other server. In some examples, both the agent and theother agent may execute on the same server and the agent establishes aconnection between the user device and the server, e.g., the applicationthat represents the other agent.

The process provides a representation of the utterance to the othercomputer-implemented agent (310). For example, the agent or the userdevice may provide the other agent with the digital representation ofspeech or a text representation of the utterance. The representation mayinclude the specific utterance or may include content, e.g., words,related to the utterance. For instance, in this example therepresentation may indicate that the user is looking to make areservation at John's Pizza Joint and may include a day, e.g., today,and/or a time, e.g., 6 PM, for the reservation, e.g., when therepresentation is provided to another agent for a restaurant reservationsystem.

The process receives, by the computer-implemented agent, anotherrepresentation of a response to the utterance (312). For instance, theother agent determines a conversation data flow that corresponds withthe representation of the utterance, identifies an action to perform, ifany, from the conversation data flow, e.g., to determine whether or notthe user can make a reservation at John's Pizza Joint, and generates anappropriate response to the utterance using the conversation data flowand data from the action. The other agent may determine that the usercannot make a reservation at 6 PM, e.g., because there is noavailability at John's Pizza Joint at that time, but can make areservation for 7 PM and provide a text representation of “we don't haveany openings at 6 PM tonight, would 7 PM work for you?” to a server,e.g., executing the agent, or the user device.

In some implementations, an application uses a conversational data flowfor the other agent to determine the response to the utterance. Forexample, the application uses data about the utterance, e.g., that theuser is looking to make a reservation, to select the conversational dataflow from multiple conversational data flows, e.g., a reservationconversational data flow, and generates a response to the user'sutterance.

The process generates, using the other representation, data to cause apresentation of the response (314). For example, when the serverreceives the text representation, the server may generate an audiosignal of the statement “we don't have any openings at 6 PM tonight,would 7 PM work for you?” using the settings for the other agent. Insome examples, the user device receives the text representation, or anaudible representation, from the other agent and audibly presents theresponse to the user.

One or more steps of the process 300 may repeat as the user requestsadditional information from the other agent and the other agent respondsto the user's requests. For instance, the process may repeat steps 304,and 310-314 until the other agent completes a transaction with the user,e.g., finishes providing the user with information required by the user,or until the other agent determines that the conversation with the usershould be passed to a different agent, e.g., and the other agent repeatssteps 306-308 to hand off the conversation to the different agent.

The order of steps in the process 300 described above is illustrativeonly, and establishing communication between the user device and thecomputer-implemented conversational agent can be performed in differentorders. For example, the process 300 may establish communication betweenthe other agent and the user device and receive a representation of aresponse from the other agent and then receive a digital representationof speech encoding another utterance and provide a representation of theother utterance to the other agent.

In some implementations, the process 300 can include additional steps,fewer steps, or some of the steps can be divided into multiple steps.For example, the process 300 may include steps 304-308 and might notinclude one or more of the steps 302 and 310-314.

Optional Implementation Details

In some implementations, the other agent accesses one or more systems ofa third party to provide responses or other information to a user. Forinstance, the other agent may receive a reservation request from a useror from an agent associated with the user's device, access a database,stored on the same server executing the other agent or a differentserver, to determine whether the user may make the requested reservationor if a different time is available, and generates a response based onthe determination.

In some implementations, different agents, e.g., associated with thesame entity or third party, may be used for different conversation dataflows or different types of interactions with a user. For instance, ahotel may have a reservation agent, a concierge agent, and a roomservice agent. When a user requests information from the hotel, an agenton his device may determine a type of interaction for which the user islooking and the hotel agent that is most likely to assist the user withthat interaction. In one example, when the device agent receives arequest stating that “I′m thinking of stating at Hotel Fancy, but I wantto know what's around Hotel Fancy. Let me talk to an agent at HotelFancy that can tell me what restaurants and activities are nearby.” Thedevice agent may then use keywords in the request to determine that theconcierge agent is the agent most likely to have the information theuser requested and create communication between the user device and theconcierge agent to enable the concierge agent to communicate with theuser.

In some implementations, a third party may have multiple agents for thesame type of conversation data flow but different types of users. Forexample, a first agent may be used to interact with users that have afirst type of demographic and a second agent, e.g., with a differentvoice or style of speech, may be used to interact with users that have asecond type of demographic, different from the first type ofdemographic.

Additional Implementation Details

In situations in which the systems or agents discussed here collectpersonal information about users, or may make use of personalinformation, the users may be provided with an opportunity to controlwhether programs or features collect user information (e.g., informationabout a user's social network, social actions or activities, profession,a user's preferences, or a user's current location), or to controlwhether and/or how to receive content from the agents that may be morerelevant to the user. In addition, certain data may be treated in one ormore ways before it is stored or used, so that personally identifiableinformation is removed. For example, a user's identity may be treated sothat no personally identifiable information can be determined for theuser, or a user's geographic location may be generalized where locationinformation is obtained (such as to a city, ZIP code, or state level),so that a particular location of a user cannot be determined. Thus, theuser may have control over how information is collected about the userand used by an agent.

Embodiments of the subject matter and the functional operationsdescribed in this specification can be implemented in digital electroniccircuitry, in tangibly-embodied computer software or firmware, incomputer hardware, including the structures disclosed in thisspecification and their structural equivalents, or in combinations ofone or more of them. Embodiments of the subject matter described in thisspecification can be implemented as one or more computer programs, i.e.,one or more modules of computer program instructions encoded on atangible non-transitory program carrier for execution by, or to controlthe operation of, data processing apparatus. Alternatively or inaddition, the program instructions can be encoded on anartificially-generated propagated signal, e.g., a machine-generatedelectrical, optical, or electromagnetic signal, that is generated toencode information for transmission to suitable receiver apparatus forexecution by a data processing apparatus. The computer storage mediumcan be a machine-readable storage device, a machine-readable storagesubstrate, a random or serial access memory device, or a combination ofone or more of them.

The term “data processing apparatus” refers to data processing hardwareand encompasses all kinds of apparatus, devices, and machines forprocessing data, including by way of example a programmable processor, acomputer, or multiple processors or computers. The apparatus can also beor further include special purpose logic circuitry, e.g., an FPGA (fieldprogrammable gate array) or an ASIC (application-specific integratedcircuit). The apparatus can optionally include, in addition to hardware,code that creates an execution environment for computer programs, e.g.,code that constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, or a combination of one or moreof them.

A computer program, which may also be referred to or described as aprogram, software, a software application, a module, a software module,a script, or code, can be written in any form of programming language,including compiled or interpreted languages, or declarative orprocedural languages, and it can be deployed in any form, including as astand-alone program or as a module, component, subroutine, or other unitsuitable for use in a computing environment. A computer program may, butneed not, correspond to a file in a file system. A program can be storedin a portion of a file that holds other programs or data, e.g., one ormore scripts stored in a markup language document, in a single filededicated to the program in question, or in multiple coordinated files,e.g., files that store one or more modules, sub-programs, or portions ofcode. A computer program can be deployed to be executed on one computeror on multiple computers that are located at one site or distributedacross multiple sites and interconnected by a communication network.

The processes and logic flows described in this specification can beperformed by one or more programmable computers executing one or morecomputer programs to perform functions by operating on input data andgenerating output. The processes and logic flows can also be performedby, and apparatus can also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application-specific integrated circuit).

Computers suitable for the execution of a computer program include, byway of example, general or special purpose microprocessors or both, orany other kind of central processing unit. Generally, a centralprocessing unit will receive instructions and data from a read-onlymemory or a random access memory or both. The essential elements of acomputer are a central processing unit for performing or executinginstructions and one or more memory devices for storing instructions anddata. Generally, a computer will also include, or be operatively coupledto receive data from or transfer data to, or both, one or more massstorage devices for storing data, e.g., magnetic, magneto-optical disks,or optical disks. However, a computer need not have such devices.Moreover, a computer can be embedded in another device, e.g., a mobiletelephone, a personal digital assistant (PDA), a mobile audio or videoplayer, a game console, a Global Positioning System (GPS) receiver, or aportable storage device, e.g., a universal serial bus (USB) flash drive,to name just a few.

Computer-readable media suitable for storing computer programinstructions and data include all forms of non-volatile memory, mediaand memory devices, including by way of example semiconductor memorydevices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks,e.g., internal hard disks or removable disks; magneto-optical disks; andCD-ROM and DVD-ROM disks. The processor and the memory can besupplemented by, or incorporated in, special purpose logic circuitry.

To provide for interaction with a user, embodiments of the subjectmatter described in this specification can be implemented on a computerhaving a display device, e.g., a CRT (cathode ray tube) or LCD (liquidcrystal display) monitor, for displaying information to the user and akeyboard and a pointing device, e.g., a mouse or a trackball, by whichthe user can provide input to the computer. Other kinds of devices canbe used to provide for interaction with a user as well; for example,feedback provided to the user can be any form of sensory feedback, e.g.,visual feedback, auditory feedback, or tactile feedback; and input fromthe user can be received in any form, including acoustic, speech, ortactile input. In addition, a computer can interact with a user bysending documents to and receiving documents from a device that is usedby the user; for example, by sending web pages to a web browser on auser's device in response to requests received from the web browser.

Embodiments of the subject matter described in this specification can beimplemented in a computing system that includes a back-end component,e.g., as a data server, or that includes a middleware component, e.g.,an application server, or that includes a front-end component, e.g., aclient computer having a graphical user interface or a Web browserthrough which a user can interact with an implementation of the subjectmatter described in this specification, or any combination of one ormore such back-end, middleware, or front-end components. The componentsof the system can be interconnected by any form or medium of digitaldata communication, e.g., a communication network. Examples ofcommunication networks include a local area network (LAN) and a widearea network (WAN), e.g., the Internet.

The computing system can include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other. In someembodiments, a server transmits data, e.g., an HTML page, to a userdevice, e.g., for purposes of displaying data to and receiving userinput from a user interacting with the user device, which acts as aclient. Data generated at the user device, e.g., a result of the userinteraction, can be received from the user device at the server.

An example of one such type of computer is shown in FIG. 4, which showsa schematic diagram of a generic computer system 400. The system 400 canbe used for the operations described in association with any of thecomputer-implement methods described previously, according to oneimplementation. The system 400 includes a processor 410, a memory 420, astorage device 430, and an input/output device 440. Each of thecomponents 410, 420, 430, and 440 are interconnected using a system bus450. The processor 410 is capable of processing instructions forexecution within the system 400. In one implementation, the processor410 is a single-threaded processor. In another implementation, theprocessor 410 is a multi-threaded processor. The processor 410 iscapable of processing instructions stored in the memory 420 or on thestorage device 430 to display graphical information for a user interfaceon the input/output device 440.

The memory 420 stores information within the system 400. In oneimplementation, the memory 420 is a computer-readable medium. In oneimplementation, the memory 420 is a volatile memory unit. In anotherimplementation, the memory 420 is a non-volatile memory unit.

The storage device 430 is capable of providing mass storage for thesystem 400. In one implementation, the storage device 430 is acomputer-readable medium. In various different implementations, thestorage device 430 may be a floppy disk device, a hard disk device, anoptical disk device, or a tape device.

The input/output device 440 provides input/output operations for thesystem 400. In one implementation, the input/output device 440 includesa keyboard and/or pointing device. In another implementation, theinput/output device 440 includes a display unit for displaying graphicaluser interfaces.

While this specification contains many specific implementation details,these should not be construed as limitations on the scope of what may beclaimed, but rather as descriptions of features that may be specific toparticular embodiments. Certain features that are described in thisspecification in the context of separate embodiments can also beimplemented in combination in a single embodiment. Conversely, variousfeatures that are described in the context of a single embodiment canalso be implemented in multiple embodiments separately or in anysuitable subcombination. Moreover, although features may be describedabove as acting in certain combinations and even initially claimed assuch, one or more features from a claimed combination can in some casesbe excised from the combination, and the claimed combination may bedirected to a subcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various system modulesand components in the embodiments described above should not beunderstood as requiring such separation in all embodiments, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

Particular embodiments of the subject matter have been described. Otherembodiments are within the scope of the following claims. For example,the actions recited in the claims can be performed in a different orderand still achieve desirable results. As one example, the processesdepicted in the accompanying figures do not necessarily require theparticular order shown, or sequential order, to achieve desirableresults. In some cases, multitasking and parallel processing may beadvantageous.

What is claimed is:
 1. A computer-implemented method comprising:receiving, by a computer-implemented agent specific to a user device,data representing properties of another computer-implemented agentincluding receiving an identification of a selection of a particularspoken style of speech for the other computer-implemented agent fromamong two or more different spoken styles of speech for a particularlanguage; receiving, by the computer-implemented agent, a digitalrepresentation of speech encoding an utterance after receiving the datarepresenting the properties of the other computer-implemented agent;determining, by the computer-implemented agent, that the utterancespecifies a requirement to establish a communication with the othercomputer-implemented agent; establishing, by the computer-implementedagent, a communication between the other computer-implemented agent andthe user device; receiving, by the user device, identification of aresponse to the utterance from the other computer-implemented agent;determining, by the computer-implemented agent, the particular spokenstyle of speech for the other computer-implemented agent, for thepresentation of the response; and presenting, by the user device, theresponse to the utterance received from the other computer-implementedagent according to the particular spoken style of speech.
 2. The methodof claim 1 wherein the other computer-implemented agent is not specificto the user device.
 3. The method of claim 1 wherein establishing thecommunication with the other computer-implemented agent and the userdevice comprises establishing the communication with the othercomputer-implemented agent executing on another device and the userdevice.
 4. The method of claim 1 wherein establishing the communicationwith the other computer-implemented agent and the user device comprisesestablishing the communication with the other computer-implemented agentand the computer-implemented agent.
 5. The method of claim 1 wherein thecomputer-implemented agent is for a first application on a user deviceand the other computer-implemented agent is for a second, differentapplication on the user device.
 6. The method of claim 1 comprising:providing a representation of the utterance to the othercomputer-implemented agent.
 7. The method of claim 6 wherein therepresentation comprises a text representation of the utterance.
 8. Themethod of claim 7 comprising: receiving, by the computer-implementedagent from the other computer-implemented agent, another representationof a response to the utterance; and generating, using the otherrepresentation, data to cause a presentation of the response to theutterance.
 9. The method of claim 6 wherein the representation comprisesthe digital representation of speech.
 10. The method of claim 6 whereinproviding the representation of the utterance to the othercomputer-implemented agent comprises providing data for a user who spokethe utterance to the other computer-implemented agent.
 11. The method ofclaim 10 wherein providing data for the user who spoke the utterance tothe other computer-implemented agent comprises: determining privacysettings for the user that define types of data for the user that thecomputer-implemented agent may provide to the other computer-implementedagent; determining data for the user who spoke the utterance that may beshared with the other computer-implemented agent based on the privacysettings for the user; and providing the data for the user who spoke theutterance to the other computer-implemented agent according to theprivacy settings.
 12. The method of claim 1 wherein receiving the datarepresenting the properties of the other computer-implemented agentcomprises receiving a definition of a data flow for the othercomputer-implemented agent that identifies a response for the othercomputer-implemented agent given a particular type of input.
 13. Themethod of claim 1 wherein receiving the data representing the propertiesof the other computer-implemented agent comprises receivingtext-to-speech parameters for responses provided by the othercomputer-implemented agent.
 14. The method of claim 1 wherein receivingthe data representing the properties of the other computer-implementedagent comprises: providing an entity access to an applicationprogramming interface that includes a plurality of templates fordifferent types of computer-implemented agents, each of the templates inthe plurality of templates identifying a data flow forcomputer-implemented agents that indicates a type of response for theother computer-implemented agent given a particular type of input;receiving, for the entity, a selection of a template from the pluralityof templates; and receiving, for the entity, a modification to thetemplate that identifies a customization to the data flow of theselected template for the other computer-implemented agent.
 15. Themethod of claim 14 wherein receiving the selection of the template fromthe plurality of templates comprises receiving a selection of a templatefor computer-implemented agents that provide online ordering services.16. The method of claim 1, comprising: receiving, by thecomputer-implemented agent, a description of an entity that created theother computer-implemented agent; and providing, by thecomputer-implemented agent, a representation of the description of theentity that created the other computer-implemented agent forpresentation.
 17. The method of claim 1, wherein receiving theidentification of the selection of the particular spoken style of speechfor the other computer-implemented agent from among two or moredifferent spoken styles of speech for a particular language comprisesreceiving an identification of particular idioms and a particularvocabulary for the other computer-implemented agent.
 18. The method ofclaim 1, wherein determining, by the computer-implemented agent, thatthe utterance specifies a requirement to establish a communication withthe other computer-implemented agent comprises: determining, by thecomputer-implemented agent using the utterance, that the utterance isnot specific to a particular second computer-implemented agent;determining, by the computer-implemented agent using the utterance, twoor more second computer-implemented agents each of which can respond tothe utterance; providing a prompt that requests selection of one of thesecond computer-implemented agents; receiving indication of a selectedone of the second computer-implemented agents; and determining, by thecomputer-implemented agent, that the utterance specifies a requirementto establish a communication with the selected one of the secondcomputer-implemented agents.
 19. A system, comprising: a data processingapparatus; and a non-transitory computer readable storage medium in datacommunication with the data processing apparatus and storinginstructions executable by the data processing apparatus and upon suchexecution cause the data processing to perform operations comprising:receiving, by a computer-implemented agent specific to a user device,data representing properties of another computer-implemented agentincluding receiving an identification of a selection of a particularspoken style of speech for the other computer-implemented agent fromamong two or more different spoken styles of speech for a particularlanguage; receiving, by the computer-implemented agent, a digitalrepresentation of speech encoding an utterance after receiving the datarepresenting the properties of the other computer-implemented agent;determining, by the computer-implemented agent, that the utterancespecifies a requirement to establish a communication with the othercomputer-implemented agent; establishing, by the computer-implementedagent, a communication between the other computer-implemented agent andthe user device; receiving, by the user device, identification of aresponse to the utterance from the other computer-implemented agent;determining, by the computer-implemented agent, the particular spokenstyle of speech for the other computer-implemented agent, for thepresentation of the response; and presenting, by the user device, theresponse to the utterance from the other computer-implemented agentaccording to the particular spoken style of speech.
 20. A non-transitorycomputer readable storage medium storing instructions executable by adata processing apparatus and upon such execution cause the dataprocessing to perform operations comprising: receiving, by acomputer-implemented agent specific to a user device, data representingproperties of another computer-implemented agent including receiving anidentification of a selection of a particular spoken style of speech forthe other computer-implemented agent from among two or more differentspoken styles of speech for a particular language; receiving, by thecomputer-implemented agent, a digital representation of speech encodingan utterance after receiving the data representing the properties of theother computer-implemented agent; determining, by thecomputer-implemented agent, that the utterance specifies a requirementto establish a communication with the other computer-implemented agent;establishing, by the computer-implemented agent, a communication betweenthe other computer-implemented agent and the user device; receiving, bythe user device, identification of a response to the utterance from theother computer-implemented agent; determining, by thecomputer-implemented agent, the particular spoken style of speech forthe other computer-implemented agent, for the presentation of theresponse; and presenting, by the user device, the response to theutterance from the other computer-implemented agent according to theparticular spoken style of speech.